package com.eig.courseweb.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eig.common.entity.course.CheckCourse;
import com.eig.common.entity.course.EduCourse;
import com.eig.common.entity.course.EduSubject;
import com.eig.common.entity.course.Teacher;
import com.eig.common.entity.system.TbMember;
import com.eig.courseweb.vo.CourseVo;
import com.eig.courseweb.vo.ShouCangVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * @author ：StudentLsj（李世界）
 * @date ：Created in 2022/12/30 下午 12:09
 * @description：
 * @modified By：
 * @version:
 */

public interface CourseWebDao extends BaseMapper<EduSubject> {
    long count(@Param("exception") CourseVo e);

    List<EduCourse> fontFindCourse(@Param("exception") CourseVo e,@Param("pageable") PageRequest pageRequest);

    Teacher findTeacherByTeacherId(String teacherId);

    long counts(@Param("s") ShouCangVo e);

    List<EduCourse> findCourseByTeacherId(@Param("s") ShouCangVo e,@Param("pageable") PageRequest pageRequest);

    long countALL(String teacherMobile,String checkStatus);

    List<EduCourse> getCoursByTeacherPhone(String teacherMobile,String checkStatus,@Param("pageable") PageRequest pageRequest);

    int changeStatus(@Param("s") EduCourse e);

    int updateCourseSubject(EduCourse e);

    int updateCourse(EduCourse e);

    int updates(EduCourse e);

    int insterCourseSubject(EduCourse e);

    int inserts(EduCourse e);

    int insertCourse(EduCourse e);

    Teacher selectTeacher(EduCourse e);

    int insertCheckCourse(EduCourse e);

    EduCourse selectCourse(String id,String mobileId);

    EduCourse query(String id);

    TbMember queryAll(String mobileId);


}
